<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateYeepayBanksTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('yeepay_banks', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->string('code', 32)->unique()->comment('银行编码');
            $table->string('name', 32)->comment('银行名称');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('yeepay_banks');
    }
}
